<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); include TPLDIR.'/home/function/getdata.php';?><?php if($space['uid']) { $member_count = get_member_count($space['uid']);?><?php $member_profile = get_member_profile($space['uid']);?><?php loaducenter(); $uc_avatarflash = uc_avatar($_G['uid'], 'virtual', 0);?><link rel="stylesheet" href="template/quater_2023_dji/home/css/home1.css?<?php echo VERHASH;?>">
<link rel="stylesheet" type="text/css" id="time_diy" href="template/quater_2023_dji/home/css/home2.css?<?php echo VERHASH;?>" />
<style id="diy_style"><?php echo $space['spacecss'];?></style>
<style type="text/css">

@media (max-width: 820px) {
.mi_section { width: 92% !important; margin-bottom: 20px !important}
.tab1 li { margin-right: 28px !important}
.tab1 li:last-child { margin-right: 0 !important}
.bg_whole { width: 100% !important; height: 210px !important; min-height: 210px !important; background-size: auto 240px; background-position: left bottom}
.home_center_box { width: 100%; padding: 16px 4% !important; box-sizing: border-box}
.box .introduce { width: 70% !important}
.box .videoL { float: right !important; margin: 0 !important; width: 26% !important; height: auto !important; max-width: 26% !important}
.box .videoL img { width: 100% !important; height: auto}
.videoV .introduce .introduceTop { display: none}
.box .introduce { height: auto !important}
.box .userInfo { position: relative !important}
.h-info { margin: 0 4% !important}
.person_fans.z { margin: 0 4% !important}
.h-avatar { width: 80px !important; min-width: 80px !important; height: 80px !important}
#h-avatar {
    width: 80px;
    height: 80px;
    border-radius: 80px;
}
.h-avatar .avatar-cover { display: none}
.citem.c4 { margin-top: 5px !important}
.moodfm_input { width: 100% !important}
#moodfm textarea { width: 100% !important; height: 60px !important; box-sizing: border-box}
.com_head { width: 10% !important}
.conmment-info { width: 70% !important; margin: 0 0 0 2% !important}
.h-action { display: none}
.h-basic-spacing { width: 100% !important}
}
</style>
</div>
<div id="ct" class="bg_whole">
    <div class="h-inner">    
     <div class="h-user">
       <div class="h-info cl">
<div class="h-avatar cl">
<img src="<?php echo avatar($space['uid'],'middle',1);; ?>" id="h-avatar">
            <?php if($_G['uid'] == $space['uid']) { ?>
<a href="home.php?mod=spacecp&amp;ac=avatar" title="更换头像" class="avatar-cover">
更换头像
</a>
<?php } ?>
</div>
        <div class="cl" style="margin-top: 10px; margin-left: 20px; margin-right: 20px;">
         <div class="h-basic">
          <span id="h-name"><?php echo $space['username'];?></span>
         </div>
         <div class="h-basic-spacing cl">
          <span style="float: left;">
          <?php if($member_profile['bio']) { ?><?php echo $member_profile['bio'];?><?php } else { ?>这个人很懒什么都没写<?php } ?>
          </span>
          <?php if($_G['uid'] == $space['uid']) { ?>
<a href="home.php?mod=spacecp&amp;ac=profile&amp;op=info" title="修改资料" class="change">
</a>
  <?php } ?>
         </div>
         
         <div class="citem c4 cl">
                                                            <span class="cj cj02  "></span>
                                                            <span class="cj cj07  "></span>
                                                            <span class="cj cj01  "></span>
                                                            <span class="cj cj03  "></span>
                                                            <span class="cj cj10  "></span>
                        </div>
         
        </div>
       </div>
     </div>
     <?php if($_G['uid'] == $space['uid']) { ?>
 <?php } else { ?>
     <div class="h-action">
        <span class="h-f-btn h-follow">
           <?php if(!ckfollow($space['uid'])) { ?>
<a id="followmod" onclick="showWindow(this.id, this.href, 'get', 0);" href="home.php?mod=spacecp&amp;ac=follow&amp;op=add&amp;hash=<?php echo FORMHASH;?>&amp;fuid=<?php echo $space['uid'];?>" title="关注">
关注
</a>
<?php } else { ?>
<a id="followmod" onclick="showWindow(this.id, this.href, 'get', 0);" href="home.php?mod=spacecp&amp;ac=follow&amp;op=del&amp;fuid=<?php echo $space['uid'];?>" title="已关注">
已关注
</a>
<?php } ?></span>
                <a href="home.php?mod=spacecp&amp;ac=pm&amp;op=showmsg&amp;handlekey=showmsg_<?php echo $space['uid'];?>&amp;touid=<?php echo $space['uid'];?>&amp;pmid=0&amp;daterange=2" id="a_sendpm_<?php echo $space['uid'];?>" onclick="showWindow('showMsgBox', this.href, 'get', 0)" title="私信" class="h-f-btn h-message">
发消息
</a>
     </div>
     <?php } ?>
    </div>
    
    <div class="wp cl" style="position: absolute; width: 100%; bottom: 0; height: 74px; display: block; box-shadow: none; border-radius: 0; background: none;">
                <div class="person_fans z" style="margin: 0 0 0 30px; line-height: 74px;">
            <a target="_blank" class="fans">
                听众<span>
                    <?php echo $member_count['follower'];?></span>个</a>
            <span class="liney">|</span>
            <a target="_blank">主题<span>
                    <?php echo $member_count['threads'];?></span>篇</a>
            <span class="liney">|</span>
            <a target="_blank">金钱<span><?php echo $member_count['extcredits2'];?></span></a>
        </div>
      </div>
    
</div>
<div class="wp home_center_box cl" style="position: relative; min-height: 300px; width: 1152px; margin-top: 0; padding: 20px 30px; border: 0; border-radius: 0 0 10px 10px; background: #FFFFFF">
<div class="cl">
<div class="tab1 cl">
<?php if(!empty($_G['setting']['pluginhooks']['space_menu_extra'])) echo $_G['setting']['pluginhooks']['space_menu_extra'];?>
<ul>
<li<?php if(CURMODULE == 'follow' && $do =='view') { ?> class="current homecate"<?php } ?>><a href="home.php?mod=follow&amp;uid=<?php echo $space['uid'];?>&amp;do=view&amp;from=space">首页</a></li>
<?php if($do =='following' || $do =='follower') { } ?>
                        <?php if(helper_access::check_module('forum')) { ?>
<li<?php if($do=='thread') { ?> class="current homecate"<?php } ?>><a href="home.php?mod=space&amp;uid=<?php echo $space['uid'];?>&amp;do=thread&amp;view=me&amp;from=space">主题</a></li>
<?php } if(helper_access::check_module('blog')) { ?>
<li<?php if($do=='blog') { ?> class="current homecate"<?php } ?>><a href="home.php?mod=space&amp;uid=<?php echo $space['uid'];?>&amp;do=blog&amp;view=me&amp;from=space">日志</a></li>
<?php } if(helper_access::check_module('album')) { ?>
<li<?php if($do=='album') { ?> class="current homecate"<?php } ?>><a href="home.php?mod=space&amp;uid=<?php echo $space['uid'];?>&amp;do=album&amp;view=me&amp;from=space">相册</a></li>
<?php } if(helper_access::check_module('doing')) { ?>
<li<?php if($do=='doing') { ?> class="current homecate"<?php } ?>><a href="home.php?mod=space&amp;uid=<?php echo $space['uid'];?>&amp;do=doing&amp;view=me&amp;from=space">记录</a></li>
<?php } if(helper_access::check_module('home')) { ?>
<li<?php if($do=='home') { ?> class="current homecate"<?php } ?>><a href="home.php?mod=space&amp;uid=<?php echo $space['uid'];?>&amp;do=home&amp;view=me&amp;from=space">动态</a></li>
<?php } if(helper_access::check_module('wall')) { ?>
<li<?php if($do=='wall') { ?> class="current homecate"<?php } ?>><a href="home.php?mod=space&amp;uid=<?php echo $space['uid'];?>&amp;do=wall&amp;from=space">留言</a></li>
<?php } ?>
<li<?php if($do=='profile') { ?> class="current homecate"<?php } ?>><a href="home.php?mod=space&amp;uid=<?php echo $space['uid'];?>&amp;do=profile&amp;from=space">资料</a></li>
</ul>
</div>
</div>
<?php if(helper_access::check_module('follow')) { ?>
<script type="text/javascript">
function succeedhandle_followmod(url, msg, values) {
var fObj = $('followmod');
if(values['type'] == 'add') {
fObj.innerHTML = '取消收听';
fObj.href = 'home.php?mod=spacecp&ac=follow&op=del&fuid='+values['fuid'];
} else if(values['type'] == 'del') {
fObj.innerHTML = '收听TA';
fObj.href = 'home.php?mod=spacecp&ac=follow&op=add&hash=<?php echo FORMHASH;?>&fuid='+values['fuid'];
}
}
</script>
<?php } } ?>